{% extends "CommonLibraryBundle::base.html.twig" %}

{% form_theme form ':form:form_bootstrap.html.twig' %}


{% block stylesheets %}
    {{ parent() }}
    <link type="text/css" rel="stylesheet" href="{{ asset("css/niveau.css") }}"/>
{% endblock %}

{% block javascripts %}
    {{parent()}}
{% endblock %}

{% block titre %}
    Niveau
{% endblock %}

{% block titresmall %}
    {% if app.request.attributes.get('_route') == 'common_library_niveau_edit' %}
        Ajout d'un niveau
    {% else %}
        Modification d'un niveau
    {% endif %}
{% endblock %}

{% block subbody %}
    <form id="formNiveau" action="" method="post" class=""{{ form_enctype(form) }}>
        <div class="well">
            {{ form_row(form.intitule, {'label': 'Intitulé'}) }}
        </div>
        {{ form_rest(form) }}
        <br>
        <div class="text-center">
            <button class="btn btn-success" type="submit">Valider</button>
            <a href="{{ path('common_library_niveau_index') }}" class="btn btn-danger text-center">Retour</a>
        </div>
    </form>
{% endblock %}